import React, {useEffect} from 'react';

function App() {
  useEffect(() => {
    window.AP.dialog.create({
      key: 'my-module-key',
      width: '500px',
      height: '200px',
      chrome: true,
      buttons: [
        {
          text: 'my button',
          identifier: 'my_unique_identifier'
        }
      ]
    }).on("close", function () {

    });
  }, []);

  return (
    <div>
      'Loading...'
    </div>
  );
}

export default App;
